package cn.itcast.com.IO.zifuliu.introduction;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class demo {
    public static void main(String[] args) throws IOException {
        //读取英文或者数字字符并显示
        FileInputStream fileInputStream = new FileInputStream("D:\\代码\\代码\\代码\\cn\\itcast\\com\\IO\\a.txt");
        int readBytes;
        while((readBytes = fileInputStream.read()) != -1){
            char c = (char)readBytes;
            System.out.print(c);
        }

    }
}
